/********************************************************************
	TABAL ENGINE - 2012/10/30
	author:		Marc Cuscullola
	
	purpose:	Controls the memory leaks
*********************************************************************/
#pragma once

#ifndef __UTILITIES_MEMLEAKS__INCLUDED_H__
#define __UTILITIES_MEMLEAKS__INCLUDED_H__

#if defined (_DEBUG)

#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#include <string>

#define new new(_NORMAL_BLOCK, MemLeaks::FileString(__FILE__), __LINE__)


namespace MemLeaks
{

extern bool MemoryBegin();
extern bool MemoryEnd();
extern const char* FileString( const char* sFile );

} //namespace MemLeaks

#endif //_DEBUG
#endif //__UTILITIES_MEMLEAKS__INCLUDED_H__
